<?php
header("content-type:text/html;charset=utf-8");

require "Db.php";
$obj = new Db();

$num      =  $_POST['num'];
$name     =  $_POST['name'];
$people   =  $_POST['people'];
$tel      =  $_POST['tel'];
$content  =  $_POST['content'];

$data = array(
    'num'     =>  $num,
    'name'    =>  $name,
    'people'  =>  $people,
    'tel'     =>  $tel,
    'content' =>  $content
);

if($obj -> add("exam",$data)){
    echo 1;
}else{
    echo 0;
}
